<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<% String appPath = request.getContextPath();%>  
<!DOCTYPE html>
<html>
  <head>
    <title>服务评价</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css">
	
	<style type="text/css">
		body{font-family:"ff-tisa-web-pro-1","ff-tisa-web-pro-2","Lucida Grande","Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","WenQuanYi Micro Hei",sans-serif;}
h1, .h1, h2, .h2, h3, .h3, h4, .h4, .lead {font-family:"ff-tisa-web-pro-1","ff-tisa-web-pro-2","Lucida Grande","Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;}
	
	</style>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
	
<div class="container">
<h3>服务评价</h3>
<small class="pull-left">
为保证我们更好的服务，请如实填写信息。
</small><br>
<hr>
<%
	Map person = (Map)request.getAttribute("person");
	if ( null == person ){
%>
<div class="alert alert-warning fade in">
    <div id="alert">对不起，您还未进行任何预约服务。</div>
</div>
<%		
	}else{
%>
<form id="serviceform" class="form-horizontal" action="#" method="post">
<input name="CARDID" type="hidden" class="form-control" value="${person.CARDID }">
   <div class="form-group">
	    <label for="HOS" class="col-xs-4 col-sm-2 control-label text-right">就诊医院：</label>
	    <div class="col-xs-8 col-sm-10">
	     <input name="HOS" type="text" class="form-control" value="${person.HOS }" placeholder="就诊医院" readonly="readonly">
	    </div>
   </div>
   <div class="form-group">
	    <label for="DEPT" class="col-xs-4 col-sm-2 control-label text-right">就诊科室：</label>
	    <div class="col-xs-8 col-sm-10">
	     <input name="DEPT" type="text" class="form-control" value="${person.DEPT }" placeholder="就诊科室" required>
	    </div>
   </div>
   <div class="form-group">
	    <label for="DATE" class="col-xs-4 col-sm-2 control-label text-right">就诊时间：</label>
	    <div class="col-xs-8 col-sm-10">
	     <input name="DATE" type="text" class="form-control" value="${person.DATE }" placeholder="就诊时间" required>
	    </div>
   </div>
   <div class="form-group">
	    <label for="NAME" class="col-xs-4 col-sm-2 control-label text-right">您的姓名：</label>
	    <div class="col-xs-8 col-sm-10">
	     <input name="NAME" type="text" class="form-control" value="${person.NAME }" placeholder="您的姓名" required>
	    </div>
   </div>
   <div class="form-group">
	    <label for="CARDID" class="col-xs-4 col-sm-2 control-label text-right">身份证：</label>
	    <div class="col-xs-8 col-sm-10">
	     <input name="CARDID" type="text" class="form-control" value="${person.CARDID }" placeholder="身份证" required>
	    </div>
   </div>
   <div class="form-group">
	    <label for="PHONE" class="col-xs-4 col-sm-2 control-label text-right">手机号：</label>
	    <div class="col-xs-8 col-sm-10">
	     <input name="PHONE" type="text" class="form-control" value="${person.PHONE }" placeholder="手机号" required>
	    </div>
   </div>
   <div class="form-group">
	    <label class="col-xs-10 col-sm-3 control-label">请选择您对就诊质量的评价</label>
	    <div class="col-xs-2 col-sm-9">
	    </div>
	</div>
	<div class="form-group">
	<label class="col-xs-1 col-sm-1 control-label"></label>
	<div class="col-xs-11 col-sm-11">
	    <div class="radio-inline col-sm-3">
		  <label>
		    <input type="radio" name="quality" id="quality1" value="1">
		    一般
		  </label>
		</div>
		<div class="radio-inline col-sm-3">
		  <label class="">
		    <input type="radio" name="quality" id="quality2" value="2">
		    满意
		  </label>
		</div>
		<div class="radio-inline col-sm-3">
		  <label class="">
		    <input type="radio" name="quality" id="quality2" value="3">
		    非常满意
		  </label>
		</div>
		</div>
	</div>
	
	<div class="form-group">
	    <label class="col-xs-10 col-sm-3 control-label">请选择您对就诊环境的评价</label>
	    <div class="col-xs-2 col-sm-9">
	    </div>
	</div>
	<div class="form-group">
	<label class="col-xs-1 col-sm-1 control-label"></label>
	<div class="col-xs-11 col-sm-11">
	    <div class="radio-inline col-sm-3">
		  <label>
		    <input type="radio" name="environment" id="environment1" value="1">
		    一般
		  </label>
		</div>
		<div class="radio-inline col-sm-3">
		  <label>
		    <input type="radio" name="environment" id="environment2" value="2">
		    满意
		  </label>
		</div>
		<div class="radio-inline col-sm-3">
		  <label>
		    <input type="radio" name="environment" id="environment2" value="3">
		    非常满意
		  </label>
		</div>
		</div>
	</div>
	
	<div class="form-group">
	    <label class="col-xs-10 col-sm-3 control-label">请选择您对服务态度的评价</label>
	    <div class="col-xs-2 col-sm-9">
	    </div>
	</div>
	<div class="form-group">
	<label class="col-xs-1 col-sm-1 control-label"></label>
	<div class="col-xs-11 col-sm-11">
	    <div class="radio-inline col-sm-3">
		  <label>
		    <input type="radio" name="attitude" id="attitude1" value="1">
		    一般
		  </label>
		</div>
		<div class="radio-inline col-sm-3">
		  <label>
		    <input type="radio" name="attitude" id="attitude2" value="2">
		    满意
		  </label>
		</div>
		<div class="radio-inline col-sm-3">
		  <label>
		    <input type="radio" name="attitude" id="attitude2" value="3">
		    非常满意
		  </label>
		</div>
		</div>
	</div>
	
	<div class="form-group">
	    <label class="col-xs-10 col-sm-3 control-label">请选择您对总体服务的评价</label>
	    <div class="col-xs-2 col-sm-9">
	    </div>
	</div>
	<div class="form-group">
	<label class="col-xs-1 col-sm-1 control-label"></label>
	<div class="col-xs-11 col-sm-11">
	    <div class="radio-inline col-sm-3">
		  <label>
		    <input type="radio" name="service" id="service1" value="1">
		    一般
		  </label>
		</div>
		<div class="radio-inline col-sm-3">
		  <label>
		    <input type="radio" name="service" id="service2" value="2">
		    满意
		  </label>
		</div>
		<div class="radio-inline col-sm-3">
		  <label>
		    <input type="radio" name="service" id="service2" value="3">
		    非常满意
		  </label>
		</div>
		</div>
	</div>

<div class="row">
  
  <div class="text-center col-xs-12 col-sm-12"><button id="sbtn" type="button" data-loading-text="正在提交..." class="btn btn-primary col-xs-12 col-sm-12">提交</button></div>
  <!-- Optional: clear the XS cols if their content doesn't match in height -->
  <div class="clearfix visible-xs"></div>
  <br><br><br><br>
</div>


</form>

<%
	}
%>


</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	$("#sbtn").click(submitFeedback);
	
});

function submitFeedback(){
	$("#sbtn").button('loading');
	$("#serviceform").submit();
}
</script>
  </body>
</html>